import {Platform, StyleSheet, Dimensions} from 'react-native';
import px2dp from '../../utils/px2dp';

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  gap: {
    height: px2dp(100),
  },
  head: {
    flexDirection: 'row',
    justifyContent: 'space-between',
    alignItems: 'center',
    paddingHorizontal: px2dp(25),
    marginVertical: px2dp(20),
  },
  head_left: {
    fontSize: px2dp(20),
    color: '#999',
  },
  head_right: {
    fontSize: px2dp(20),
    color: '#999',
  },
  share_container:{
    position: 'absolute',
    left: 0,
    bottom: px2dp(750) > 375 && Platform.OS === 'ios' ? px2dp(44) : 0,
    flex: 1,
    height: px2dp(280),
    backgroundColor: '#fff',
    borderTopLeftRadius: px2dp(40),
    borderTopRightRadius: px2dp(40),
    borderTopColor: '#f7f7f7',
    borderTopWidth: 1,
    zIndex: 9999,
  },
  share_type: {
    flex: 1,
    width: px2dp(700),
    marginHorizontal: px2dp(25),
    height: px2dp(280),
    backgroundColor: '#fff',
    borderTopLeftRadius: px2dp(40),
    borderTopRightRadius: px2dp(40),
    flexDirection: 'row',
    justifyContent: 'space-between',
  },
  share_list: {
    justifyContent: 'center',
    alignItems: 'center',
  },
  share_icon: {
    width: px2dp(82),
    height: px2dp(82),
  },
  cancel: {
    height: px2dp(91),
    justifyContent: 'center',
    alignItems: 'center',
  },
  webview_container: {
    flex: 1,
    backgroundColor: '#fff',
    height: Dimensions.get('window').height,
    // height: 'auto',/
    marginBottom: px2dp(68),
    fontSize: px2dp(36),
  },
  title_container: {
    flexDirection: 'row',
    alignItems: 'center',
    paddingHorizontal: px2dp(37),
    marginTop: px2dp(50),
    marginBottom: px2dp(42),
  },
  line: {
    width: px2dp(6),
    height: px2dp(20),
    backgroundColor: '#EB0029',
    borderRadius: px2dp(3),
  },
  disc_title: {
    fontSize: px2dp(32),
    fontWeight: 'bold',
    color: '#333',
    marginLeft: px2dp(23),
  },
  disc_list: {
    flexDirection: 'row',
    paddingHorizontal: px2dp(47),
    marginBottom: px2dp(56),
  },
  disc_cover: {
    width: px2dp(44),
    height: px2dp(44),
    borderRadius: px2dp(22),
    backgroundColor: '#f7f7f7',
    marginRight: px2dp(27),
  },
  disc_info: {
    flex: 1,
  },
  ques: {
    color: '#333',
    fontSize: px2dp(28),
    marginTop: px2dp(8),
    lineHeight: px2dp(34),
  },
  answer: {
    color: '#333',
    fontSize: px2dp(24),
    marginTop: px2dp(27),
  },
  name: {
    color: '#FFBA00',
  },
});

export default styles;
